(function(){
	var app = angular.module( 'myApp.login-module', [ 'ngStorage', 'ngAuth', 'ngTranslation' ] );
	
	app.config( [ 'AuthProvider', 'StorageProvider', 'TranslationProvider', '$httpProvider', 
	              function( AuthProvider, StorageProvider, TranslationProvider, $httpProvider ){
		
		StorageProvider.setAppName( 'recipes' );
		
		//TranslationProvider.setDomainPath( '/translations/loadByDomain' );
		TranslationProvider.setMessagesPath( '/app/messages/' );
		TranslationProvider.setExpirationTime( 10 );
		
	} ] );
	
	app.run( [ 'Storage', 'Auth', 'Translation', function( Storage, Auth, Translation ){
		Translation.begin();
	} ] );
	
})();
